<?php
/**
 * 畅言评论组件
 * User: Administrator
 * Date: 2017/6/11
 * Time: 21:34
 */
namespace frontend\widgets\comment;

use yii\base\Widget;

class CommentWidget extends Widget
{
    public $id = 0;

    public function run()
    {
        $data['id'] = $this->id ? $this->id : 0;
        return $this->render('index', ['data' => $data]);
    }
}